package com.tool.role;

import org.come.until.UserMessUntil;

public class BaseMeridians {
//	经脉编号_修炼进度_品质_属性_值
	private int id;// 经脉编号
	private int exp;// 进度
	private int quality;// 品质
	private String key;
	private double value;
	private int stage;// 阶段，境界

	private int bh;//经脉编号

	public BaseMeridians(int id, int exp, int quality, String key, double value, int stage) {
		this.id = id;
		this.exp = exp;
		this.quality = quality;
		this.key = key;
		this.value = value;
		this.stage = stage;
	}

//	/**获取经脉编号*/
//	public int getBh() { return bh; }
//	/**获取key*/
//	public int getLvl() { return BaseValue.getMeridiansLvl(exp); }
//	/**获取key*/
//	public String getKey() { return key; }
//	/**获取总加成*/
	public double getKeyValue() {
		String[] ss = UserMessUntil.getAllMeridians().getByQuality(id, quality).getStages().split("_");
		String s = ss[stage];
		return value * (1 + Double.parseDouble(s));
	}
//	/**品质*/
//    public int getXs() {return xs;}
//    /**获取当前经验*/
//    public int getExp() {return exp;}
//    public int getUpExp(int lvl){
//       return (exp -BaseValue.getMeridiansTotalExp(lvl-1));
//    }
//    /**获取下一级经验*/
//    public int getNextExp(int lvl){
//        return BaseValue.getMeridiansExp(lvl);
//    }
//    public void setExp(int exp) {
//        this.exp = exp;
//    }

	public int getExp() {
		return exp;
	}

	public void setExp(int exp) {
		this.exp = exp;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public double getValue() {
		return value;
	}

	public void setValue(double value) {
		this.value = value;
	}

	public int getStage() {
		return stage;
	}

	public void setStage(int stage) {
		this.stage = stage;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getQuality() {
		return quality;
	}

	public void setQuality(int quality) {
		this.quality = quality;
	}

	public int getBh() { return bh; }
}
